//统一处理
import React from 'react'

import LoginCoking from './coking'
import Userinformation from './userinformation'
class RootStore{
    constructor(){
        //所有的数据都要在这里实例化

        this.logincoking=new LoginCoking()
        this.userinformation=new Userinformation()
        // ...
    }
}

// 固定代码
// 实例化根
// 导出useStore context

const rootStore=new RootStore()
const context=React.createContext(rootStore)
const useStore=()=>React.useContext(context)
export {useStore}